import { defHttp } from '/@/utils/http/axios';

enum Api {
  requestStat = '/api-log/requestStat',
  loginfo = '/sys/loginfo',
  visitInfo = '/sys/visitInfo',
}

/**
 * 统计信息
 * @param params
 */
export const getStatInfo = (params) => defHttp.get({ url: Api.requestStat, params }, { isTransformResponse: false });

/**
 * 统计信息
 * @param params
 */
export const getLoginfo = (params) => defHttp.get({ url: Api.loginfo, params }, { isTransformResponse: false });
/**
 * 访问量信息
 * @param params
 */
export const getVisitInfo = (params) => defHttp.get({ url: Api.visitInfo, params }, { isTransformResponse: false });
